
<%--
  *  File:    ZylFlowCollection.jsp
  *  @Author: jackwang
  *  Date:    2012/4/24
  *
  *  Copyright (C) 2000 - 2005 Oval Technologies, Inc.
  *  All rights reserved.
  *
  *  This software is the confidential and proprietary information of Oval
  *  Technologies, Inc. ("Confidential Information").  You shall not
  *  disclose such Confidential Information and shall use it only in
  *  accordance with the terms of the license agreement you entered into
  *  with Oval.
 --%>

<%--------------------------------------  setting logger --%>
<%@ page contentType="text/html;charset=UTF-8"%>

<%
   //init param
   Category cat = Category.getInstance("jsp.ZylFlowCollection");
   String strTableName = "v_zylflowcollection";
   String strModuleName = "TDR";
   String privilegeCode = "A0801";
     String contextPath = request.getContextPath();
 %>


<%@ include file="/inc/CommonHeader.inc"%>
<%@ include file="/inc/OvalLocationDefault.inc"%>
<%@ include file="/inc/Security.inc"%>

<html>
<head>
<title>ZylFlowCollection.jsp</title>
<PageFlow:CheckPageFlow pageName="p_zylflowcollection" />
<%@ include file="/inc/CatchError.inc"%>
<%@ include file="/inc/SumDiv.inc"%>
<%@ include file="/rpt/ReportURL.inc"%>
<%
HashMap userinfo = (HashMap)session.getAttribute("userinfo");
Integer  issalesman = (Integer) userinfo.get("issalesman");
String flag = (String)pageContext.getAttribute("flag");
java.util.Calendar cal = java.util.Calendar.getInstance();   
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet"
	href="<%=contextPath%>/css/<%= strLanguageCode %>/main.css"
	type="text/css">
<script language="JavaScript"
	src="<%=contextPath%>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath%>/js/ScriptLib.js"></script>
<script language="JavaScript"
	src="<%=contextPath%>/js/SummaryDivision.js"></script>
<script language="JavaScript">
function page_summary(actionvalue,orderbyname)
{
	  var editform = summaryPrepare(cform,actionvalue,orderbyname);
	  editform.action = "ZylFlowCollection.jsp?<%= OvalTools.randomURL() %>";
	  editform.target = "_self";
	  isRunning = true;
	  editform.submit();  
}
	</script>
<style type="text/css">
*{padding:0;margin:0;}
.container {width:230px;margin:1px auto;}
.holder2 {color:#FDFAC5;}
/*wu tu yuan jiao*/
.b1 {height:1px; font-size:1px; overflow:hidden; display:block; background:#FDFAC5; margin:0 5px;background-color:#FDFAC5}
.b2 {height:1px; font-size:1px; overflow:hidden; display:block; background:#FDFAC5; border-right:2px solid #FDFAC5; border-left:2px solid #FDFAC5; margin:0 3px;background-color:#FDFAC5}
.b3 {height:1px; font-size:1px; overflow:hidden; display:block; background:#FDFAC5; border-right:1px solid #FDFAC5; border-left:1px solid #FDFAC5; margin:0 2px;background-color:#FDFAC5}
.b4 {height:2px; font-size:1px; overflow:hidden; display:block; background:#FDFAC5; border-right:1px solid #FDFAC5; border-left:1px solid #FDFAC5; margin:0 1px;background-color:#FDFAC5}
.content {border-right:1px solid #FDFAC5; height:15px;border-left:1px solid #FDFAC5;background-color:#FDFAC5}
</style>


</head>

<body style="overflow: auto;">
<form name="cform" method="post" action="<%=contextPath%>/Dispatcher"><input
	type="hidden" name="pagename" value="p_zylflowcollection" /> <input
	type="hidden" name="actionname" /> <input type="hidden"
	name="categorycode" /> <input type="hidden" name="mark" value="1" />
	<input type="hidden" name="isfirst" value="N"/>
<custom:hidden property="userid" name="userinfo" scope="session"></custom:hidden>
<%--  page location   --%> <%@ include file="/inc/PageLocation.inc"%> <custom:hidden
	property="globalpccode"></custom:hidden>
<table width="100%" cellspacing="0" border="0" cellpadding="0">
	<tr>
		<%--  search criteria  --%>
	</tr>
	<tr>
		<td>
		<table width="100%" border="0" cellspacing="0">
			<tr>
				<td width="5%" class="td_right"><%= label.getLabelName("L_TradeName") + label.getLabelName("L_Colon") %></td>
				<td width="6%" class="td_right"><custom:text property="orgname"
					readonly="false" size="24" /></td>
				<td style="width:90px;" class="td_right"><font size="2">数据类型:</font></td>
				<td><custom:selectdic property="inputtype" dictType="DataCleanType"
					valueCriteria="10,20,30"  defaultValue="ALL"/> <a
					href="javascript:page_summary('search')"> <img
					src="<%=contextPath %>/images/<%= strLanguageCode %>/go_fy.gif"
					border="0" style="border: 1 solid #000000"></a></td>

				<custom:hidden property="inputtype" />
				</td>
				<td>&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td colspan="2">
		<div style="width:100%;height=380;overflow=auto;">
		<table width="100%" border="1" cellpadding="0"
			bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0"
			align="center">
			<tr class="deepblue-left">
				<td width="4%">&nbsp;</td>
				<td width="32%" class="title_center"><%=label.getLabelName("L_TradeNo")%></td>
				<td width="32%" class="title_center"><%=label.getLabelName("L_TradeName")%></td>
				<td width="32%" class="title_center">流向类型</td>
			</tr>
			<%
	          	Vector allRange = (Vector)pageContext.getAttribute("totalsummary");
			 	if(allRange == null)
			 		allRange = new Vector();
	             int i = 0;
	             String strClassType = new String();   
	             Integer nDefaultuserid = new Integer(-1);
	             String strChecked = "";
	             boolean bHasChecked = false;
	          %>
			<logic:iterate id="flows" collection="<%= allRange %>">
				<%
	            HashMap mapInfo = (HashMap)pageContext.getAttribute("flows"); 
	            if(i%2 == 1)
	              strClassType = "td-listrom";
	            else                    
	              strClassType = "none";
	            if(!bHasChecked){
	            	nDefaultuserid = (Integer)((HashMap)pageContext.getAttribute("flows")).get("userid");
	            	System.out.println("nDefaultuserid:"+nDefaultuserid);
	                bHasChecked = true;
	                strChecked = "Checked";
	              }else{
	                strChecked = "";
	              }
	           %>
				<tr onMouseOver="this.className='tr-over'"
					onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'"
					onClick="radiotrue('userid<%=JspHelper.filterNull( i )%>');javascript:clickRow(<custom:write name="flows" property="userid" />);">
					<td>&nbsp;</td>
					<td><custom:write property="orgcode" name="flows" nbsp="true" /></td>
					<td><custom:write property="orgname" name="flows" nbsp="true" /></td>
					<td><custom:write property="typecode" name="flows" nbsp="true" /></td>
				</tr>
				<%
	          	i++;    
	          %>
			</logic:iterate>
			<%@ include file="/inc/SummaryAction.inc"%>
		</table>
		</div>
		</td>
	</tr>
</table>
</form>
</body>
</html>

